/*
 * @Author: zoey
 * @Date: 2023-04-28 15:02:39
 * @LastEditors: zoey
 * @LastEditTime: 2023-04-30 11:44:32
 * @Description: 请填写简介
 */
const Mock = require('mockjs')
const Random = Mock.Random


const routerForensicsData = function () {
  //mock数据包括：目标：target 网关: gateway 子网掩码: subnet_mask 标志：sign 跃点：hops 接口：interface 插入时间：insertion_time 取证用户：forensices_user 证书号:certificate_number 上链哈希值：on-chain_hash
  let newList = []
  for (let i = 0; i < 100; i++) {
    let newObject = {
      key: i + '',
      target: Random.ip(),
      gateway: Random.ip(),
      subnet_mask: '255.255.255.0',
      sign: 'U',
      hops: Random.integer(0, 20100),
      interface: 0,
      insertion_time: Random.datetime(),
      forensices_user: Random.first(),
      certificate_number: Random.string(64, 64),
      hash: Random.string('number', 32, 32),
    }
    newList.push(newObject)
  }
  return newList
}
//Mock.mock('http://localhost:8081/mock/routerforensicsdata', routerForensicsData)